<?php namespace App\Lib\Params;
/**
 * Created by PhpStorm.
 * User: xiaosl
 * Date: 15/4/18
 * Time: 下午11:59
 */
class WebColumnSearchParams extends BaseSearchParams{
    public $parentId = 0;

    public function __construct(array $webColumnSearch=array())
    {
        parent::__construct();
        if(!empty($webColumnSearch['parentId']) && is_numeric($webColumnSearch['parentId'])){
            $this->parentId = $webColumnSearch['parentId'];
        }
    }

    public function setParentId($parentId)
    {
        $this->parentId = $parentId;
    }
}